Instance 1
Class370.runThreadByLimitedTime(long limitTime,Thread testThread)#0{
testThread.start();
testThread.join(limitTime);
if (testThread.isAlive()) {
testThread.interrupt();
fail("timeout by " + limitTime / 1000 + " seconds"); //$NON-NLS-2$
} else {
// Finished
}
}
|
|